package com.lx.service;

import com.lx.bean.Forum;
import com.lx.dao.ForumMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ForumService {
    @Autowired
    ForumMapper forumMapper;

    public List<Forum> selectAllForum() {
        return forumMapper.selectByExamplewhilebody(null);

    }

    public List<Forum> selectForumById() {
        return forumMapper.selectByExample(null);
    }

}
